---
layout: single
property_name: grid-area
---

<section id="grid-area" class="property property--shorthand">
  <header class="property-header">
    <nav class="property-links">
        <a class="property-collection" href="{{site.url}}/css-grid/">
          In collection: <strong>CSS Grid</strong>
        </a>
      <a class="property-links-direct" href="{{site.url}}/property/grid-area/" data-property-name="grid-area" data-tooltip="Single page for this property">Permalink</a>
      <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="grid-area">Share</a>
        <a target="_blank" href="http://caniuse.com/#feat=css-grid" data-tooltip="See on Can I use..." rel="external">Can I use</a>
      <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/grid-area" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
    </nav>
    <h2 class="property-name">
      <a href="#grid-area"><span>#</span>grid-area</a>
    </h2>
    <div class="property-description">
      <p>Shorthand property for <code class="shorthand"><a class="hash" href="{{site.url}}/property/grid-row-start" data-property-name="grid-row-start">grid-row-start</a></code> <code class="shorthand"><a class="hash" href="{{site.url}}/property/grid-column-start" data-property-name="grid-column-start">grid-column-start</a></code> <code class="shorthand"><a class="hash" href="{{site.url}}/property/grid-row-end" data-property-name="grid-row-end">grid-row-end</a></code>  and  <code class="shorthand"><a class="hash" href="{{site.url}}/property/grid-column-end" data-property-name="grid-column-end">grid-column-end</a></code>.</p>

    </div>

  </header>

    <style type="text/css">.grid-area { display: grid;grid-template-columns: 1fr 1fr 1fr;padding: 0; }</style>




    <section class="example">
      <header class="example-header">
        <p class="example-name">
            <code class="example-default" data-tooltip="This is the property's default value">default</code>


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="grid-area: auto;">grid-area: auto;</code>
        </p>
        <div class="example-description">
          <p>The grid item&#39;s column and row starts and ends are automatically set.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div grid-area " id="grid-area-auto"><p class="block block--alpha">Item</p><p class="block block--beta">Item</p><p class="block block--pink"><strong>Target</strong></p><p class="block block--yellow">Item</p><p class="block block--purple">Item</p><p class="block block--alpha">Item</p><p class="block block--beta">Item</p><p class="block block--yellow">Item</p><p class="block block--purple">Item</p></div>
        </div>
      </aside>
          <style type="text/css">#grid-area-auto{ grid-area:auto;}</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="grid-area: main;">grid-area: main;</code>
        </p>
        <div class="example-description">
          <p>You can use an <strong>area name</strong>.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div grid-area " id="grid-area-main"><p class="block block--alpha">Header</p><p class="block block--beta">Sidebar</p><p class="block block--purple">Footer</p><p class="block block--pink"><strong>Target</strong></p></div>
        </div>
      </aside>
          <style type="text/css">#grid-area-main{ grid-area:main;}</style>
        <style type="text/css">#grid-area-main{ grid-template-columns: 3fr 70fr;grid-template-rows: 50px 200px 50px;grid-template-areas: "header header header" "sidebar main main" "sidebar main main" "sidebar footer footer"; }</style>
        <style type="text/css">#grid-area-main .block--alpha { grid-area: header; }#grid-area-main .block--beta { grid-area: sidebar; }#grid-area-main .block--purple { grid-area: footer; }#grid-area-main .block--pink { grid-row: main; }</style>
    </section>

</section>
